using System.ComponentModel.DataAnnotations;

namespace BW.Demo.Domain.Entities
{
    /// <summary>
    /// 溯源管理主表
    /// </summary>
    public class TraceabilityManagement:BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Basic_Traceability { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>

        public int Gid { get; set; } 

        /// <summary>
        /// 生产批次(整个系统唯一)
        /// </summary>
        [MaxLength(50)]
        public string Batch { get; set; } = string.Empty;

        /// <summary>
        /// 保质期
        /// </summary>
        public int Shelf_life { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [MaxLength(50)]
        public string Productionlicense { get; set; } = string.Empty;

        /// <summary>
        /// 生产企业
        /// </summary>
        [MaxLength(50)]
        public string Production_Enterprise { get; set; } = string.Empty;

        /// <summary>
        /// 信息完善度
        /// </summary>
        public int Information_Completeness { get; set; }

        ///// <summary>
        ///// 创建人
        ///// </summary>
        //[MaxLength(20)]
        //public string CreateUser { get; set; } = string.Empty;

        ///// <summary>
        ///// 创建时间
        ///// </summary>
        //public DateTime CreateTime { get; set; }

        /// <summary>
        /// 产品检验报告图片
        /// </summary>
        [MaxLength(100)]
        public string ProductInspectionReportPath { get; set; } = string.Empty;

        ///// <summary>
        ///// 修改人
        ///// </summary>
        //[MaxLength(20)]
        //public string UpdataUser { get; set; } = string.Empty;

        ///// <summary>
        ///// 是否删除
        ///// </summary>
        //public bool LogicalDel { get; set; }

        /// <summary>
        /// 封面图片
        /// </summary>
        [MaxLength(100)]
        public string CoverImage { get; set; } = string.Empty;
    }
}
